import { defineStore } from 'pinia';

export const useConfigStore = defineStore('config', {
  state: () => ({
    status: {
      //客服电话
      servicePhone: '4001638819',
      //显示网点范围 公里
      searchRangeDistance: 5,
      //移动距离搜索网点最大距离
      maxRangeSearch: 5000,
      //最多显示网点数量
      totalSite: 100,
      loadingWhitelist: ['/app/rentbox/popup'],
      //协议公司名
      agreementCompanyName: '河北雄安诚电科技有限公司',
      //协议公司名简称
      agreementCompanyAbbreviation: '诚电'
    },
    ossConfig: {
      key: 'LTAI5tGX1TKPmQx5Ziq7remn',
      acce: 'CVcniV44W4Lqs4Ljs8CjykEJpkCdic',
      bucket: 'sw-chengdian',
      region: 'cn-shanghai'
    },
    routerConfig: {
      whitelist: ['/pages/site/site', '/pages/map/map', '/pages/login/login', '/pages/url/url', '/pages/help/help']
    },
    apiConfig: {
      url: 'https://s.chengdiankeji.com.cn/sw',
      headers: {
        Accept: 'application/json',
        'content-type': 'application/json',
        client: 'wechatmini',
        'Authorized-Token': ''
      },
      timeout: 30000
    },
    constants: {
      TOKEN: 'TOKEN',
      couponRecoreId: 'couponRecoreId',
      couponRecoreTime: 'couponRecoreTime',
      deviceId: 'deviceId',
      couponUrl: 'couponUrl',
      whitelist: 'whitelist',
      check: 'check'
    }
  })
});
